package com.jason.sms.agent.provider;

import com.jason.sms.agent.model.SmsRequest;
import com.jason.sms.agent.util.PhoneNumberType;

public  class SmsProviderFactory {
	
	private CmppProvider cmppProvider;
	
	private KuanleProvider kuanleProvider;
	
	public SmsProviderFactory(){
		cmppProvider = new CmppProvider();
		kuanleProvider = new KuanleProvider();
	}
	
	public  SmsProvider getProvider(SmsRequest request){
		
		if(request.getNumberType()==PhoneNumberType.CMCC){
			return cmppProvider;
		}
		return null;
	}
	
}
